package io.renren.modules.product.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaoyu
 * @since 2023-07-29
 */
@Getter
@Setter
@ToString
@TableName("bm_r_product_user")
@ApiModel(value = "ProductUser对象", description = "")
public class ProductUserEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键字段")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ApiModelProperty(value = "所属成员id")
    private Long userId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "数据创建者")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @ApiModelProperty(value = "数据最后修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date lastEditTime;

    @ApiModelProperty(value = "数据最后修改者")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long lastEditUser;

    @ApiModelProperty(value = "逻辑删除（1：未删除 2：已删除）")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer delStatus;
}
